Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

define the interface of seed #1286

Merged
merged 1 commit into from
Apr 22, 2020

Conversation

wangforthinker
Copy link
Contributor

@wangforthinker wangforthinker commented Apr 15, 2020

Signed-off-by: allen.wq allen.wq@alipay.com

Ⅰ. Describe what this PR did

define the seed interface. See #1284.

Ⅱ. Does this pull request fix one issue?

NONE.

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)

No need.

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@hhhhsdxxxx
Copy link

lgtm!
Reviewed-by henry.hj@antfin.com

@wangforthinker wangforthinker force-pushed the feat/define-seed-interface branch 2 times, most recently from e52d6c2 to f3603eb Compare April 16, 2020 04:07
@codecov-io
Copy link

codecov-io commented Apr 16, 2020

Codecov Report

Merging #1286 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1286   +/-   ##
=======================================
  Coverage   49.73%   49.73%           
=======================================
  Files         120      120           
  Lines        7938     7938           
=======================================
  Hits         3948     3948           
  Misses       3666     3666           
  Partials      324      324           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 19f1613...cb47003. Read the comment docs.

Copy link
Member

@lowzj lowzj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The taskID is not in the BaseInfo, should it be contained?

// Seed describes the seed file which represents the resource file defined by taskUrl.
type Seed interface {
// Prefetch will start to download seed file to local cache.
Prefetch(perDownloadSize int64) (<-chan struct{}, error)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the meaning of perDownloadSize here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when a seed prefetch,perDownloadSize is the maximum size of concurrent downloading for a seed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add taskID in BaseInfo.

@pouchrobot pouchrobot added size/XL and removed size/L labels Apr 22, 2020
Signed-off-by: allen.wq <allen.wq@alipay.com>
@wangforthinker
Copy link
Contributor Author

The taskID is not in the BaseInfo, should it be contained?

Add it.

Copy link
Member

@lowzj lowzj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lowzj lowzj merged commit 06d2368 into dragonflyoss:master Apr 22, 2020
@wangforthinker wangforthinker deleted the feat/define-seed-interface branch April 23, 2020 03:19
sungjunyoung pushed a commit to sungjunyoung/Dragonfly that referenced this pull request May 8, 2022
Signed-off-by: Jim Ma <majinjing3@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants